import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.border.LineBorder;

/**
 * Login screen (GUI) for medical related staff to access the system.
 */
class UserLogin extends JInternalFrame {
	
	private JLabel employeeIDLabel;
    public JTextField employeeID;
    public JPasswordField password;
    private JLabel passwordLabel;
    public JLabel status;
    public JButton loginButton;

    public UserLogin() {

        super("Login");

        setBounds(380, 200, 253, 154);
        setVisible(true);
        getContentPane().setLayout(null);
        getContentPane().setBackground(Color.white);
        setBorder(new LineBorder(new Color(184, 207, 229, 255), 1, false));
        setClosable(false);
        setFrameIcon(null);
        toFront();

        employeeIDLabel = new JLabel();
        getContentPane().add(employeeIDLabel);
        employeeIDLabel.setText("Employee ID#");
        employeeIDLabel.setBounds(10, 25, 91, 28);

        employeeID = new JTextField();
        getContentPane().add(employeeID);
        employeeID.setBounds(100, 29, 130, 21);

        passwordLabel = new JLabel();
        getContentPane().add(passwordLabel);
        passwordLabel.setText("Password");
        passwordLabel.setBounds(10, 63, 63, 28);

        password = new JPasswordField();
        getContentPane().add(password);
        password.setBounds(100, 67, 130, 21);

        status = new JLabel("");
        getContentPane().add(status);
        status.setFont(null);

        status.setBounds(10, 125, 250, 28);
        status.setForeground(Color.red);
        status.setFont( new Font(null, Font.PLAIN, 9 ) );
        
        loginButton = new JButton("Login");
        getContentPane().add(loginButton);
        loginButton.setBounds(75, 100, 100, 28);
    }

    
}